package com.lemzdo.community.model;

import java.util.ArrayList;
import java.util.List;

public class NoticeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public NoticeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andSenderIdIsNull() {
            addCriterion("sender_id is null");
            return (Criteria) this;
        }

        public Criteria andSenderIdIsNotNull() {
            addCriterion("sender_id is not null");
            return (Criteria) this;
        }

        public Criteria andSenderIdEqualTo(Integer value) {
            addCriterion("sender_id =", value, "senderId");
            return (Criteria) this;
        }

        public Criteria andSenderIdNotEqualTo(Integer value) {
            addCriterion("sender_id <>", value, "senderId");
            return (Criteria) this;
        }

        public Criteria andSenderIdGreaterThan(Integer value) {
            addCriterion("sender_id >", value, "senderId");
            return (Criteria) this;
        }

        public Criteria andSenderIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("sender_id >=", value, "senderId");
            return (Criteria) this;
        }

        public Criteria andSenderIdLessThan(Integer value) {
            addCriterion("sender_id <", value, "senderId");
            return (Criteria) this;
        }

        public Criteria andSenderIdLessThanOrEqualTo(Integer value) {
            addCriterion("sender_id <=", value, "senderId");
            return (Criteria) this;
        }

        public Criteria andSenderIdIn(List<Integer> values) {
            addCriterion("sender_id in", values, "senderId");
            return (Criteria) this;
        }

        public Criteria andSenderIdNotIn(List<Integer> values) {
            addCriterion("sender_id not in", values, "senderId");
            return (Criteria) this;
        }

        public Criteria andSenderIdBetween(Integer value1, Integer value2) {
            addCriterion("sender_id between", value1, value2, "senderId");
            return (Criteria) this;
        }

        public Criteria andSenderIdNotBetween(Integer value1, Integer value2) {
            addCriterion("sender_id not between", value1, value2, "senderId");
            return (Criteria) this;
        }

        public Criteria andReceiverIdIsNull() {
            addCriterion("receiver_id is null");
            return (Criteria) this;
        }

        public Criteria andReceiverIdIsNotNull() {
            addCriterion("receiver_id is not null");
            return (Criteria) this;
        }

        public Criteria andReceiverIdEqualTo(Integer value) {
            addCriterion("receiver_id =", value, "receiverId");
            return (Criteria) this;
        }

        public Criteria andReceiverIdNotEqualTo(Integer value) {
            addCriterion("receiver_id <>", value, "receiverId");
            return (Criteria) this;
        }

        public Criteria andReceiverIdGreaterThan(Integer value) {
            addCriterion("receiver_id >", value, "receiverId");
            return (Criteria) this;
        }

        public Criteria andReceiverIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("receiver_id >=", value, "receiverId");
            return (Criteria) this;
        }

        public Criteria andReceiverIdLessThan(Integer value) {
            addCriterion("receiver_id <", value, "receiverId");
            return (Criteria) this;
        }

        public Criteria andReceiverIdLessThanOrEqualTo(Integer value) {
            addCriterion("receiver_id <=", value, "receiverId");
            return (Criteria) this;
        }

        public Criteria andReceiverIdIn(List<Integer> values) {
            addCriterion("receiver_id in", values, "receiverId");
            return (Criteria) this;
        }

        public Criteria andReceiverIdNotIn(List<Integer> values) {
            addCriterion("receiver_id not in", values, "receiverId");
            return (Criteria) this;
        }

        public Criteria andReceiverIdBetween(Integer value1, Integer value2) {
            addCriterion("receiver_id between", value1, value2, "receiverId");
            return (Criteria) this;
        }

        public Criteria andReceiverIdNotBetween(Integer value1, Integer value2) {
            addCriterion("receiver_id not between", value1, value2, "receiverId");
            return (Criteria) this;
        }

        public Criteria andPostOrCommentIdIsNull() {
            addCriterion("post_or_comment_id is null");
            return (Criteria) this;
        }

        public Criteria andPostOrCommentIdIsNotNull() {
            addCriterion("post_or_comment_id is not null");
            return (Criteria) this;
        }

        public Criteria andPostOrCommentIdEqualTo(Integer value) {
            addCriterion("post_or_comment_id =", value, "postOrCommentId");
            return (Criteria) this;
        }

        public Criteria andPostOrCommentIdNotEqualTo(Integer value) {
            addCriterion("post_or_comment_id <>", value, "postOrCommentId");
            return (Criteria) this;
        }

        public Criteria andPostOrCommentIdGreaterThan(Integer value) {
            addCriterion("post_or_comment_id >", value, "postOrCommentId");
            return (Criteria) this;
        }

        public Criteria andPostOrCommentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("post_or_comment_id >=", value, "postOrCommentId");
            return (Criteria) this;
        }

        public Criteria andPostOrCommentIdLessThan(Integer value) {
            addCriterion("post_or_comment_id <", value, "postOrCommentId");
            return (Criteria) this;
        }

        public Criteria andPostOrCommentIdLessThanOrEqualTo(Integer value) {
            addCriterion("post_or_comment_id <=", value, "postOrCommentId");
            return (Criteria) this;
        }

        public Criteria andPostOrCommentIdIn(List<Integer> values) {
            addCriterion("post_or_comment_id in", values, "postOrCommentId");
            return (Criteria) this;
        }

        public Criteria andPostOrCommentIdNotIn(List<Integer> values) {
            addCriterion("post_or_comment_id not in", values, "postOrCommentId");
            return (Criteria) this;
        }

        public Criteria andPostOrCommentIdBetween(Integer value1, Integer value2) {
            addCriterion("post_or_comment_id between", value1, value2, "postOrCommentId");
            return (Criteria) this;
        }

        public Criteria andPostOrCommentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("post_or_comment_id not between", value1, value2, "postOrCommentId");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeCodeIsNull() {
            addCriterion("notice_type_code is null");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeCodeIsNotNull() {
            addCriterion("notice_type_code is not null");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeCodeEqualTo(Integer value) {
            addCriterion("notice_type_code =", value, "noticeTypeCode");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeCodeNotEqualTo(Integer value) {
            addCriterion("notice_type_code <>", value, "noticeTypeCode");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeCodeGreaterThan(Integer value) {
            addCriterion("notice_type_code >", value, "noticeTypeCode");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeCodeGreaterThanOrEqualTo(Integer value) {
            addCriterion("notice_type_code >=", value, "noticeTypeCode");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeCodeLessThan(Integer value) {
            addCriterion("notice_type_code <", value, "noticeTypeCode");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeCodeLessThanOrEqualTo(Integer value) {
            addCriterion("notice_type_code <=", value, "noticeTypeCode");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeCodeIn(List<Integer> values) {
            addCriterion("notice_type_code in", values, "noticeTypeCode");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeCodeNotIn(List<Integer> values) {
            addCriterion("notice_type_code not in", values, "noticeTypeCode");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeCodeBetween(Integer value1, Integer value2) {
            addCriterion("notice_type_code between", value1, value2, "noticeTypeCode");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeCodeNotBetween(Integer value1, Integer value2) {
            addCriterion("notice_type_code not between", value1, value2, "noticeTypeCode");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeMsgIsNull() {
            addCriterion("notice_type_msg is null");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeMsgIsNotNull() {
            addCriterion("notice_type_msg is not null");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeMsgEqualTo(String value) {
            addCriterion("notice_type_msg =", value, "noticeTypeMsg");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeMsgNotEqualTo(String value) {
            addCriterion("notice_type_msg <>", value, "noticeTypeMsg");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeMsgGreaterThan(String value) {
            addCriterion("notice_type_msg >", value, "noticeTypeMsg");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeMsgGreaterThanOrEqualTo(String value) {
            addCriterion("notice_type_msg >=", value, "noticeTypeMsg");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeMsgLessThan(String value) {
            addCriterion("notice_type_msg <", value, "noticeTypeMsg");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeMsgLessThanOrEqualTo(String value) {
            addCriterion("notice_type_msg <=", value, "noticeTypeMsg");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeMsgLike(String value) {
            addCriterion("notice_type_msg like", value, "noticeTypeMsg");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeMsgNotLike(String value) {
            addCriterion("notice_type_msg not like", value, "noticeTypeMsg");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeMsgIn(List<String> values) {
            addCriterion("notice_type_msg in", values, "noticeTypeMsg");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeMsgNotIn(List<String> values) {
            addCriterion("notice_type_msg not in", values, "noticeTypeMsg");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeMsgBetween(String value1, String value2) {
            addCriterion("notice_type_msg between", value1, value2, "noticeTypeMsg");
            return (Criteria) this;
        }

        public Criteria andNoticeTypeMsgNotBetween(String value1, String value2) {
            addCriterion("notice_type_msg not between", value1, value2, "noticeTypeMsg");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andGmtCreateIsNull() {
            addCriterion("gmt_create is null");
            return (Criteria) this;
        }

        public Criteria andGmtCreateIsNotNull() {
            addCriterion("gmt_create is not null");
            return (Criteria) this;
        }

        public Criteria andGmtCreateEqualTo(Long value) {
            addCriterion("gmt_create =", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateNotEqualTo(Long value) {
            addCriterion("gmt_create <>", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateGreaterThan(Long value) {
            addCriterion("gmt_create >", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateGreaterThanOrEqualTo(Long value) {
            addCriterion("gmt_create >=", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateLessThan(Long value) {
            addCriterion("gmt_create <", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateLessThanOrEqualTo(Long value) {
            addCriterion("gmt_create <=", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateIn(List<Long> values) {
            addCriterion("gmt_create in", values, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateNotIn(List<Long> values) {
            addCriterion("gmt_create not in", values, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateBetween(Long value1, Long value2) {
            addCriterion("gmt_create between", value1, value2, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateNotBetween(Long value1, Long value2) {
            addCriterion("gmt_create not between", value1, value2, "gmtCreate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}